#700/s 在windows 32G内存 2G处理器
import tornado.ioloop
import tornado.web
import logging
import time
t1=time.time()
t2=time.time()
request_count = 0

class MainHandler(tornado.web.RequestHandler):
    def get(self):
        global request_count,t2,t1
        request_count += 1
        if request_count % 100 == 0:
            t2=time.time()
            print(t2-t1,request_count)
            t1=t2
        self.write("Hello, world!")

def make_app():
    return tornado.web.Application([
        (r"/", MainHandler),
    ])

if __name__ == "__main__":
    app = make_app()
    app.listen(12347)
    tornado.ioloop.IOLoop.current().start()